package com.sddz.pacs.dto;

import javax.validation.constraints.Pattern;

/**
 * Created by Administrator on 2018/5/20/020.
 * 登录,修改密码等通用传输对象
 */
public class LoginVo {

    /*
    用户名
     */
   // @NotBlank(message = "用户名不能为空,请输入用户名称!")
    private String userName;

    /*
    密码
     */
    private String password;

    /*
    图文验证码
     */
    private String captcha;

    /*
    短信验证码
     */
    private String messageCode;

    /*
    手机号
     */
    @Pattern(regexp = "1[3|4|5|7|8|9][0-9]\\d{8}",message = "请填写正确的手机号")
    private String phone;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getCaptcha() {
        return captcha;
    }

    public void setCaptcha(String captcha) {
        this.captcha = captcha;
    }

    public String getMessageCode() {
        return messageCode;
    }

    public void setMessageCode(String messageCode) {
        this.messageCode = messageCode;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
}
